package com.foreknow.service;

import com.foreknow.bean.Guestbook;
import com.foreknow.util.Pagination;

import java.util.List;

public interface GuestbookService {
    /**
     * 保存
     * @param gb
     * @return
     */
    public boolean save(Guestbook gb);

    /**
     * 查询所有留言信息
     * @return
     */
    public List<Object> getQueryInfo();

    /**
     * 根据id删除
     * @param id
     * @return
     */
    public boolean deleteGuestbookById(Integer id);

    /**
     * 分页查询
     * @param pageSize 每页显示的记录数
     * @param pageNumber 页码
     * @return
     */
    public Pagination getByPage(int pageSize, int pageNumber);
}
